scikit-learn: OneVsRestClassifier
https://scikit-learn.org/stable/modules/generated/sklearn.multiclass.OneVsRestClassifier.html
One-vs-the-rest (OvR) multiclass strategy.
Also known as one-vs-all, this strategy consists in fitting one classifier per class.
「クラスごとに1つの分類器を訓練する」
OneVsRestClassifier can also be used for multilabel classification.
#multilabel(機械学習用語) にも使える
the target labels should be formatted as a 2D binary (0/1) matrix, where [i, j] == 1 indicates the presence of label j in sample i.
「目的ラベルは2次のバイナリ(0/1)の行列として整形されるべき」
「[i, j] == 1は、サンプルiのラベルjが存在することを示す」
([i, j] == 1:サンプルiにラベルjが付与されている。0だと付与されていない)
このフォーマットにするためにscikit-learn: MultiLabelBinarizerの出番かも
OneVsRestClassifierの使用例
1.12.1.2. OneVsRestClassifier